package com.eshop.modules.mp.builder;

import me.chanjar.weixin.mp.bean.message.WxMpXmlOutImageMessage;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutMessage;
import me.chanjar.weixin.mp.api.WxMpService;
import me.chanjar.weixin.mp.bean.message.WxMpXmlMessage;

public class ImageBuilder extends AbstractBuilder
{
    @Override
    public WxMpXmlOutMessage build(final String content, final WxMpXmlMessage wxMessage, final WxMpService service) {
        final WxMpXmlOutImageMessage m = ((WxMpXmlOutMessage.IMAGE().mediaId(content).fromUser(wxMessage.getToUser())).toUser(wxMessage.getFromUser())).build();
        return m;
    }
}
